import 'package:color_dart/RgbaColor.dart';
import 'package:flutter/material.dart';
import 'package:im_flutter_sdk_example/components/labels/index.dart';

class ExpertItem extends StatelessWidget {
  const ExpertItem({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(bottom: 10),
      child: Container(
        color: Colors.white,
        padding: EdgeInsets.only(bottom: 10, top: 19, left: 16, right: 16),
        child: Row(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            SizedBox(
              width: 60,
              height: 60,
              child: ClipRRect(
                borderRadius: new BorderRadius.circular(30),
                child: Image.asset(
                  'lib/assets/images/order/order1.png',
                  width: 30,
                  height: 30,
                  fit: BoxFit.cover,
                ),
              ),
            ),
            Expanded(
              child: Padding(
                padding: const EdgeInsets.only(left: 10),
                child: Column(
                  children: [
                    Row(
                      children: [
                        Text('张志',
                            style: TextStyle(
                                color: rgba(68, 68, 68, 1),
                                fontSize: 17,
                                fontWeight: FontWeight.bold)),
                        LabelRenzheng(),
                        LabelTeyao(),
                      ],
                    ),
                    Row(children: [
                      Text(
                        '中科院院士  |  国际空间中心主任',
                        style: TextStyle(color: rgba(51, 51, 51, 1)),
                      )
                    ]),
                    Padding(
                      padding: const EdgeInsets.only(top: 10, bottom: 2),
                      child: Row(children: [
                        Text('方向：电子信息、软件设计、人工智能人工人…',
                            style: TextStyle(color: rgba(51, 51, 51, 1)))
                      ]),
                    ),
                    Padding(
                      padding: const EdgeInsets.symmetric(vertical: 4),
                      child: Row(children: [
                        Text('服务人次 300  ',
                            style: TextStyle(color: rgba(163, 163, 163, 1))),
                        Text('好评率 100% ',
                            style: TextStyle(color: rgba(163, 163, 163, 1)))
                      ]),
                    ),
                  ],
                ),
              ),
            )
          ],
        ),
      ),
    );
  }
}
